package com.order.service;

import com.github.pagehelper.PageInfo;
import com.order.bean.Admin;

import java.util.List;

public interface AdminService {

    Admin login(Admin admin);

    boolean addAdmin(Admin admin);

    boolean updateById(Admin admin);

    boolean deleteById(Integer id);

    boolean deleteBatch(Integer[] ids);

    Admin selectById(int id);

    List<Admin> selectAll(String name);

    PageInfo<Admin> selectPage(String name, Integer pageNum, Integer pageSize);

}
